package com.smart.manager.member.entities.models;

import com.smart.common.entities.core.BaseLongModel;
import com.smart.manager.member.entities.views.MemberView;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import java.math.BigDecimal;


/**
 * 会员收货地址
 *
 * @author Administrator
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@Accessors(chain = true)
public class MemberProfileAccount extends BaseLongModel {


    @ApiModelProperty("会员编号")
    @ManyToOne
    @JoinColumn(name = "member" ,referencedColumnName = "id")
    private MemberView member;

    @ApiModelProperty("硬币账户余额")
    private Integer coinBalance;


    @ApiModelProperty("现金账户余额")
    private BigDecimal cashBalance;

    @ApiModelProperty("能量账户余额")
    private Integer powerBalance;

    @ApiModelProperty("助力钻石")
    private Integer medalBalance;

    @ApiModelProperty("偷蛋次数")
    private Integer chickenQuantity;

    @ApiModelProperty("我的鸡蛋")
    private Integer eggQuantity;


}
